#{extends 'frame.html' /}
#{set title:'待打印订单' /}

#{set 'moreStyles'}
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/audit-task.css'}" />
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/express.css'}" />
<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />
#{/set}

#{authenticityToken /}
<div class="tabbedCard" id="waitingTaskPanel">
<div class="contentTitle">
		<span class="iconfont">&#xf00bf;</span>
		<span class="dingdan"><a href="javascript:;" id="waitUpload">待打印的订单</a></span>
	</div>
	<div id="taskFilterPanel">
		<span class="floatLeft mr10">商家用户昵称</span>
		<input type="text" id="nick" class="inputText floatLeft required mr10" />
		<a class="stdColorButton floatLeft queryBtn" href="javascript:;" id="queryBtn">查询</a>
		<span class="floatRight">
			<form id="waitPrintForm" method="post">
				设置打印数量：
				<input type="text" class="required" name="vo.exportNo" id="printNum" style="width:60px;color:red;"/>	
				#{authenticityToken /}
				<a href="javascript:;" class="stdColorButton" id="btnPrintOrder">准备打印</a>
				&nbsp;&nbsp;&nbsp;
				<span id="shuaxin" class="" style="display:none">打印订单后请刷新页面&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
			</form>
		</span>
	</div>
	<div class="contentBody">
		<table class="normTable">
			<thead>
				<tr>
					<td>任务编号</td>
					<td>订单号</td>
					<td>收货人</td>
					<td>收货地址</td>
					<td>收货人电话</td>
					<td>店铺旺旺ID</td>
					<td>运单号</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody id="orderContainer"></tbody>
		</table>
		<div id="noMsg"><div class="warnBox"><span class="iconfont">&#xf00b6;</span>没有订单号!</div></div>
		<div class="pagin-btm clearFix"style="display: none;">
			<div class="pagination"></div>
		</div>
		<div class="popWrapper" style="display: none;" id="tr_loading_mask">
			<div class="maskLayer"></div>
			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		
		</div>
	</div>
</div>
<textarea id="orderTemp" class="muban">
{{#results}}
	<tr>
		<td>{{number}}</td>
		<td>{{orderId}}</td>
		<td>{{consignee}}</td>
		<td>{{fullAddress}}</td>
		<td>{{mobile}}</td>
		<td><a class="queryByShopName" id="querytbSellerNick" href="javascript:;" data-name="{{tbSellerNick}}">{{tbSellerNick}}</a></td>
		<td>待处理</td>
		<td>
		{{#isWaitImport}}
		<a class="stdColorButton btnResetStatus" href="javascript:;" data-id="{{id}}">重置状态</a>
		{{/isWaitImport}}
		</td>
	</tr>
{{/results}}
</textarea>


<!-- templates -->
#{authenticityToken /}

#{set 'moreScripts'}
<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>
<script src="@{'/public/javascripts/expressprint/waitExpressPrint.js'}" type="text/javascript"></script>
<script type="text/javascript">App.module = 'waitExpressPrint';</script>
#{/set}